import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Login from '../page/Login'
import Main from '@/page/Main'
Vue.use(Router)


export const router = [
  {
    path: '/',
    name: 'Login',
    component: Login
  },{
    path: '/main',
    name: 'main',
    component: Main,
    children:[
     {
          path: '1',
          name: '1',
          component: Main
        },
        {
          path: '2',
          name: '2',
          component: Login
        }
    ]
  }
]

export default new Router({
  routes: router
})
